package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.appcommon.entity.UploadFile;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.Bank;
import com.chainyoung.component_tmperson.entity.Purse;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;
import okhttp3.RequestBody;

public interface BindRecieveAccountContract {

    interface View extends IView {


        void onSetRecieveAccountSuccess(String data);

        void onGetBanks(List<Bank> data);

        void onUpLoadCodeSuccess(UploadFile uploadFile);
    }

    interface Model extends IModel {


        Flowable<String> setReceiveAccount(TreeMap<String, Object> map);

        Flowable<List<Bank>> getBanks();

        Flowable<UploadFile>  upLoadCodeImg(RequestBody params);

    }


}
